<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		{:sp_get_admin_breadcrumb(array('url' => U('Finance/AdminConfig/add'), 'icon' => 'plus', 'title' => '添加'))}
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="260">支付类型</th>
					<th width="120">支付标志</th>
					<th width="80">是否启用</th>
					<th>说明</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.name}</td>
					<td>{$vo.type}</td>
					<td><eq name="vo.enable" value="1"><span class="green">√</span><else /><span class="red">×</span></eq></td>
					<td>{$vo.remark}</td>
					<td>
						<if condition="strstr($vo['type'], 'offline') === false">
							<neq name="vo.type" value="gift"><a href="{:U('Finance/AdminConfig/setting',array('type'=>$vo['type']))}">配置</a> | </neq>
						<else />
							<a href="{:U('Finance/AdminConfig/edit',array('type'=>$vo['type']))}">配置</a> | 
						</if>
						<eq name="vo.enable" value="0">
						  <a href="{:U('AdminConfig/enable',array('type'=>$vo['type']))}" class="js-ajax-dialog-btn" data-msg="确认启用 {$vo.name} 支付么？">启用</a>
						<else />
						  <a href="{:U('AdminConfig/disable',array('type'=>$vo['type']))}" class="js-ajax-dialog-btn" data-msg="确认禁用 {$vo.name} 支付么？">禁用</a>
						</eq>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>